import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from '@/router';
import { directivesList } from '@/plugins'
import { createPinia } from 'pinia'


// 创建vue实例
const app = createApp(App);
for (const key in directivesList) {
    app.directive(key, directivesList[key])
}
// 挂在路由
app.use(router)
// 挂载pinia
app.use(createPinia())
// 挂载实例
app.mount('#app')
